score = [[99,89,79,69],[98,88,78,68,58],[97,87,77]]
i = 1
for s in score:
    total = 0
    for a in s:
        total += a
    print('%d班的总成绩是%d'%(i, total))
    i += 1